﻿<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>情侣浪漫表白js特效代码</title>
<meta name="keywords" content="情侣,浪漫表白,js特效,代码"/>
<meta name="description" content="情侣浪漫表白js特效代码。"/>
<style type="text/css">
@font-face {
	font-family: digit;
	src: url('digital-7_mono.ttf') format("truetype");
}
</style>

<link href="css/default.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/garden.js"></script>
<script type="text/javascript" src="js/functions.js"></script>

</head>

<body>

<div id="mainDiv">
	<div id="content">
		<div id="code">
			<span class="comments">/**</span><br />
			<span class="space"/><span class="comments">*2025—05-20,</span><br />
			<span class="space"/><span class="comments">永远</span><br />
			<span class="space"/><span class="comments">*/</span><br />
			范涛之 = <span class="keyword">Mr</span> FanTaohzhi<br />
			景晓雪 = <span class="keyword">Mrs</span> JingXiaoxue<br />
			我爱你<br />
			<span class="keyword">// I Love You
			<span class="keyword">// AS time goes on.</span><br />
			从我们相遇的那一刻起，我就知道你就是我一生的追逐;<br />
			<span class="comments">// From the moment we met, I knew you were my lifelong chase </span><br />
			<span class="keyword"> 愿你永远平安快乐.</span><br />
			<span class="comments">// May you always be safe and happy </span><br />
			<span class="keyword">我爱你</span><br />
			你的美丽如同雪山之巅的雪莲<br />
			<span class="comments">// Your beauty is like a snow lotus on the top of a snowy mountain </span><br />
			<span class="keyword"> 愿你永远平安快乐.</span><br />
				<span class="comments">// May you always be safe and happy </span><br />
			<span class="keyword"> 愿我们永远在一起</span><br />
				<span class="comments">// May we always be together </span><br />
			<span class="keyword">在我的世界里，</span> 你是那 <span class="keyword">最抹最绚烂的色彩</span>;<br />
			<span class="keyword">每个日落日出</span> 我都 <span class="keyword">想你</span>;<br />
			<span class="placeholder"/><span class="comments">// I miss you every sunset and sunrise</span><br />
			<span class="placeholder"/><span class="comments">// In my world, you are the most brilliant color.</span><br />
			<span class="placeholder"/>在这个繁华的世界，我庆幸遇到了你<br />
			<br>
			<br>
			请让我用尽所有的力气去爱你，直到永远。<br />
			Baby, I love you forever;<br />
		</div>
		<div id="loveHeart">
			<canvas id="garden"></canvas>
			<div id="words">
				<div id="messages">
					亲爱的，这是我们相爱在一起的时光。
					<div id="elapseClock"></div>
				</div>
				<div id="loveu">
					爱你直到永永远远。<br/>
					<div class="signature">- 爱你的之</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
var offsetX = $("#loveHeart").width() / 2;
var offsetY = $("#loveHeart").height() / 2 - 55;
var together = new Date();
together.setFullYear(2025, 04, 19);
together.setHours(0);
together.setMinutes(0);
together.setSeconds(0);
together.setMilliseconds(0);

if (!document.createElement('canvas').getContext) {
	var msg = document.createElement("div");
	msg.id = "errorMsg";
	msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+"; 
	document.body.appendChild(msg);
	$("#code").css("display", "none")
	$("#copyright").css("position", "absolute");
	$("#copyright").css("bottom", "10px");
	document.execCommand("stop");
} else {
	setTimeout(function () {
		startHeartAnimation();
	}, 5000);

	timeElapse(together);
	setInterval(function () {
		timeElapse(together);
	}, 500);

	adjustCodePosition();
	$("#code").typewriter();
}
</script>

</body>
</html>